package org.yzl.designPatterns.adapter.objectdapter.impl;

import org.yzl.designPatterns.adapter.objectdapter.IObjectAdapter;
import org.yzl.designPatterns.adapter.objectdapter.Source;

public class ObjectAdapterImpl implements IObjectAdapter {

    private Source source;

    public ObjectAdapterImpl(Source source) {
        super();
        this.source = source;
    }

    @Override
    public void mothod1() {
        source.mothod1();
    }

    @Override
    public void mothod2() {
        System.out.println("This is mothod2");
    }
}
